﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.SystemManager.ApplyGather;
using SystemCenterSoa.IRepository.SystemManager.ApplyGather;
using SystemCenterSoa.PoModel.SystemManager.ApplyGather;

namespace SystemCenterSoa.Service.SystemManager.ApplyGather
{
    public class LeaveApplyService
    {
        private ILeaveApplyRepository _leaveApplyRepository;

        public LeaveApplyService(ILeaveApplyRepository leaveApplyRepository)
        {
            _leaveApplyRepository = leaveApplyRepository;
        }
        /// <summary>
        /// 添加申请(请假)
        /// </summary>
        /// <returns></returns>
        public bool AddClocking_inApplyFo(Clocking_inApplyFo model)
        {
            return _leaveApplyRepository.AddClocking_inApplyFo(model);
        }
        public bool GetLeaveApplyAdd(LeaveApplyPo leaveApply)
        {
            return _leaveApplyRepository.GetLeaveApplyAdd(leaveApply);
        }
        public List<LeaveApplyDto> GetLeaveApplyList(int deId, string nian, string yue, int pageIndex, int pageSize)
        {
            return _leaveApplyRepository.GetLeaveApplyList(deId, nian, yue, pageIndex, pageSize);
        }
        public LeaveApplyPo GetLeaveApplyFan(int id)
        {
            return _leaveApplyRepository.GetLeaveApplyFan(id);
        }
        public bool GetLeaveApplyUpdate(LeaveApplyPo leaveApply)
        {
            return _leaveApplyRepository.GetLeaveApplyUpdate(leaveApply);
        }
        public bool GetLeaveApplyDel(string ids)
        {
            return _leaveApplyRepository.GetLeaveApplyDel(ids);
        }
    }
}
